﻿//
//  Map_Settlements
//  Trukkr
//
//  Created by Mathew Purchase 2014.
//  Copyright (c) 2014 Pariah Air. All rights reserved.
//

using UnityEngine;
using System.Collections.Generic;
using System;

[RequireComponent(typeof(Animator))]
public class AnimatorEx : MonoBehaviour 
{
    private Animator m_animator;

	//---------------------------------------------------------------------------------------------
	void Start () 
    {
	    m_animator = gameObject.GetComponent<Animator>();
	}

    //---------------------------------------------------------------------------------------------
	void Update () 
    {
        int val = (int)Mathf.Round(UnityEngine.Random.value * 100);
        m_animator.SetInteger("Random", val);
	}

    //---------------------------------------------------------------------------------------------
}
